package org.mybatis.generator.my.exception;

public class NotInitException extends RuntimeException {

    public static final String DEFAULT_CODE = "5000";

    private String code;

    public NotInitException() {
        this("some config not init.");
    }

    public NotInitException(String message) {
        super(message);
        this.code = DEFAULT_CODE;
    }

    public NotInitException(final String code, final String message) {
        super(message);
        this.code = code;
    }

    public String getCode() {
        return this.code;
    }
}
